﻿using System;
using Windows.UI.Popups;

namespace Smile.Mvvm.Service
{
    /// <summary>Service which manage display of pop-up messages.</summary>
    public class MessageBoxService : IMessageBoxService
    {
        public async void ShowAsync(string message)
        {
            try
            {
                var messageDialog = new MessageDialog(message);
                await messageDialog.ShowAsync();
            }
            catch
            {
            }
        }
    }
}
